'''
Created on 2014-12-29

@author: revol
'''
def enum(*sequential, **named):
    enums = dict(zip(sequential, range(len(sequential))), **named)
    return type('Enum', (), enums)

if __name__ == '__main__':
    numbers=enum('A','B','C')
    print numbers.A
    print numbers.B
    print numbers.C